<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./public/reset.css">
    <style>
        #login-head{
            width: 100%;
            border-bottom: 4px solid rgb(226,5,27);
        }
        .login-head-top{
            width: 100%;
            background-color: #f4f4f4;
        }
        .login-head-top>p{
            width: 1200px;
            margin: 0 auto;
            color: #868686;
            font-size: 12px;
            padding-bottom: 3px;
        }
        .login-head-bottom{
            width: 1200px;
            margin: 25px auto 0;
            display: flex;
            justify-content: space-between;
            padding: 0px 0px 20px 0px;
        }
        .login-head-bottom>div:nth-child(2) img{
            float: left;
            width: 85px;
            height: 85px;
            margin-right: 3px;
        }
        .login-head-bottom>div:nth-child(2) p{
            overflow: hidden;
            white-space: nowrap;
            font:400 16px/16px "微软雅黑";
            line-height: 1.8em;
            color: #666;
        }
        #test{width: 100%;height: 470px;}
    </style>
</head>
<script src="./JSlibrary/icon/footer/iconfont.js"></script>
<script src="./public/JQuery/jquery.3.5.0.js"></script>
<body>
    <div id="login-head">
        <div class="login-head-top">
        <p>欢迎来到得力办公商城</p>
        </div>
        <div class="login-head-bottom">
        <div>
            <img src="./images/login/logo.jpg" alt="">
        </div>
        <div>
            <img src="./images/index/head/QRcode.jpg" alt="">
            <p>扫一扫！关注得力办公商城</p>
            <p>售前热线：400-168-0888</p>
            <p>售后热线：400-185-0555</p>
        </div>
        </div>
    </div>
    <div id="test"></div>
    <div id="footer"></div>
</body>
<script>
    window.onload=function(){
        $.ajax({
            url:"http://localhost:3000/database/login.json",
            dataType:"json",
            success:function(res){console.log(res.msg[0].src); $("#test").css({background:`url(${res.msg[0].src})`})}
        })
    }
</script>
<script>$("#footer").load("http://localhost:3000/public/public.html .footer")</script>
</html>